const allImgs = import.meta.glob("~/assets/images/**/*.*", { eager: true });


export default function loadImg(url: string) {
  for (const key in allImgs) {
    if(key.includes(url)) {
        return allImgs[key].default
    }
  }
}
